package com.howtoplay.data.RabbitMq;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class Receiver {

    @RabbitListener(queues = "DateQueue")
    public String processAndSendResult(Date msg){
        System.out.println("Receiver  : " + msg);
        return msg.toString().toUpperCase();
    }
}